import * as echarts from 'echarts/core';
import { BarChart, LineChart, PieChart, MapChart, GraphChart, RadarChart } from 'echarts/charts';
import {
    TitleComponent,
    TooltipComponent,
    GridComponent,
    PolarComponent,
    AriaComponent,
    ParallelComponent,    
    LegendComponent,    
} from 'echarts/components';

import { CanvasRenderer } from 'echarts/renderers';

echarts.use([
    TitleComponent,
    TooltipComponent,
    GridComponent,
    PolarComponent,
    AriaComponent,
    ParallelComponent,
    LegendComponent,
    BarChart,
    LineChart,
    PieChart,
    RadarChart,
    MapChart,
    GraphChart,
    CanvasRenderer,
]);

export default echarts;